package com.springboot.dense.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.springboot.dense.dto.FogLevelDTO;
import com.springboot.dense.entity.FogLevel;
import com.springboot.dense.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-04-14
 */
public interface FogLevelService extends IService<FogLevel>{

    List<FogLevelDTO> findByAll();

    List<FogLevelDTO> findByone(@Param("id")int id);

    List<FogLevelDTO> findsearchAll(@Param("city")String city, @Param("type")String type);

    List<CityAlertVO> findCityAlertByDate(String date);

    List<CityHistoryLevelVO> findCityHistoryLevel();

    List<CityLastWeekLevelVO> findCityLastWeekLevel(String city);

    List<CityHistoryDetailVO> findCityLastWeekLevelTwo(String city);

    CityDetailVO findOneCityDetail(@Param("date")String date, @Param("city") String city);

}
